package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TbCustomerOrderDetailMapper;
import com.ruoyi.common.core.domain.TbCustomerOrderDetail;
import com.ruoyi.system.service.ITbCustomerOrderDetailService;

/**
 * 所有顾客订单Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-09
 */
@Service
public class TbCustomerOrderDetailServiceImpl implements ITbCustomerOrderDetailService 
{
    @Autowired
    private TbCustomerOrderDetailMapper tbCustomerOrderDetailMapper;

    /**
     * 查询所有顾客订单
     * 
     * @param orderId 所有顾客订单主键
     * @return 所有顾客订单
     */
    @Override
    public TbCustomerOrderDetail selectTbCustomerOrderDetailByOrderId(Long orderId)
    {
        return tbCustomerOrderDetailMapper.selectTbCustomerOrderDetailByOrderId(orderId);
    }

    /**
     * 查询所有顾客订单列表
     * 
     * @param tbCustomerOrderDetail 所有顾客订单
     * @return 所有顾客订单
     */
    @Override
    public List<TbCustomerOrderDetail> selectTbCustomerOrderDetailList(TbCustomerOrderDetail tbCustomerOrderDetail)
    {
        return tbCustomerOrderDetailMapper.selectTbCustomerOrderDetailList(tbCustomerOrderDetail);
    }

    /**
     * 新增所有顾客订单
     * 
     * @param tbCustomerOrderDetail 所有顾客订单
     * @return 结果
     */
    @Override
    public int insertTbCustomerOrderDetail(TbCustomerOrderDetail tbCustomerOrderDetail)
    {
        return tbCustomerOrderDetailMapper.insertTbCustomerOrderDetail(tbCustomerOrderDetail);
    }

    /**
     * 修改所有顾客订单
     * 
     * @param tbCustomerOrderDetail 所有顾客订单
     * @return 结果
     */
    @Override
    public int updateTbCustomerOrderDetail(TbCustomerOrderDetail tbCustomerOrderDetail)
    {
        return tbCustomerOrderDetailMapper.updateTbCustomerOrderDetail(tbCustomerOrderDetail);
    }

    /**
     * 批量删除所有顾客订单
     * 
     * @param orderIds 需要删除的所有顾客订单主键
     * @return 结果
     */
    @Override
    public int deleteTbCustomerOrderDetailByOrderIds(Long[] orderIds)
    {
        return tbCustomerOrderDetailMapper.deleteTbCustomerOrderDetailByOrderIds(orderIds);
    }

    /**
     * 删除所有顾客订单信息
     * 
     * @param orderId 所有顾客订单主键
     * @return 结果
     */
    @Override
    public int deleteTbCustomerOrderDetailByOrderId(Long orderId)
    {
        return tbCustomerOrderDetailMapper.deleteTbCustomerOrderDetailByOrderId(orderId);
    }
}
